package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.common.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CheckgroupMapper {
//    @Insert("")
    void addCheckGroup(CheckGroup checkGroup);

    Page<CheckGroup> pageQuery(QueryPageBean queryPageBean);

    void editGroup(CheckGroup checkGroup);

    @Select("select  * from t_checkgroup where id=#{id}")
    CheckGroup getById(Integer id);

    @Select("select * from t_checkgroup")
    List<CheckGroup> findAllCheckGroup();
}
